//
//  LPZWYChooseClassClassModel.m
//  ZhongWangYuan
//
//  Created by liuyingping on 2018/6/2.
//  Copyright © 2018年 ZJ. All rights reserved.
//

#import "LPZWYChooseClassClassModel.h"

@implementation LPZWYChooseClassClassModel
- (NSString *)description{
    return [self yy_modelDescription];
}

+ (NSDictionary *)modelCustomPropertyMapper{
    return @{@"ID":@[@"id",@"coursewareid"],@"Description":@"description",@"name":@[@"name",@"NAME"]};
}

- (NSString *)teachervideo{
    if (_teachervideo.length == 0) {
        return nil;
    }
    if ([_teachervideo containsString:@"http"]){
        return _teachervideo;
    }
    return [NSString stringWithFormat:@"%@%@",BASEIMAGEURL,_teachervideo];
}
- (NSString *)audio_url{
    if (_audio_url.length == 0) {
        return nil;
    }
    if ([_audio_url containsString:@"http"]){
        return _audio_url;
        
    }
    return [NSString stringWithFormat:@"%@%@",BASEIMAGEURL,_audio_url];
}

@end
